# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-python-masscan
_pkgname=python-masscan
pkgver=1.0.0
pkgrel=5
pkgdesc='Python library which helps in using masscan port scanner. '
url='https://pypi.org/project/python-masscan/#files'
arch=('any')
license=('GPL3')
depends=('python' 'masscan')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('399f9e97b9d6f255f743f05ce0d5913dcae053ade1b6ba0f40c4a23109aa6ae5b1e9a97fb776f2b854349cee1a7fd536d77009ccd0757d890485dfe60a740e30')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

